import {defineStore} from "pinia";

export const useGlobalStore = defineStore('global',{
    state:()=>({
        loading:false
    }),
    getters:{
        isLoading:state=>state.loading
    },
    actions:{
        changeLoading (state){
            this.loading = state;
        }
    }

})